package com.lz.kunkun.messageservice;

import org.springframework.context.ApplicationContext;

import com.lz.kunkun.messageservice.service.IContactPeopleService;
import com.lz.kunkun.messageservice.service.IMessageSendService;
import com.lz.kunkun.messageservice.service.ISysUserService;

public class ServicesManager {
private ISysUserService sysUserService;
private IMessageSendService messageSendService;
private IContactPeopleService contactPeopleService;
public static ServicesManager instance=new ServicesManager();
public static ServicesManager getInstance(ApplicationContext context) {
	instance.sysUserService = context.getBean("sysUserService", ISysUserService.class);
	instance.messageSendService = context.getBean("messageSendService", IMessageSendService.class);
	instance.contactPeopleService=context.getBean("contactPeopleService", IContactPeopleService.class);
	return instance;
}
public ISysUserService getISysUserService() {
	return sysUserService;
}
public IMessageSendService getIMessageSendService() {
	return messageSendService;
}
public IContactPeopleService getIContactUserService() {
	return contactPeopleService;
}
}
